<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="zh">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
<meta name="generator" content="Doxygen 1.11.0"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>cppMISC: include/details/iserial.hpp 源文件</title>
<link href="../../tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="../../jquery.js"></script>
<script type="text/javascript" src="../../dynsections.js"></script>
<script type="text/javascript" src="../../clipboard.js"></script>
<link href="../../navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="../../resize.js"></script>
<script type="text/javascript" src="../../cookie.js"></script>
<link href="../../search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="../../search/searchdata.js"></script>
<script type="text/javascript" src="../../search/search.js"></script>
<script type="text/javascript" src="../../darkmode_toggle.js"></script>
<link href="../../doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr id="projectrow">
  <td id="projectalign">
   <div id="projectname">cppMISC<span id="projectnumber">&#160;v1.1</span>
   </div>
   <div id="projectbrief">cppMisc 文档系统</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.11.0 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
var searchBox = new SearchBox("searchBox", "../../search/",'.html');
/* @license-end */
</script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function() { codefold.init(1); });
/* @license-end */
</script>
<script type="text/javascript" src="../../menudata.js"></script>
<script type="text/javascript" src="../../menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function() {
  initMenu('../../',true,false,'search.php','搜索',false);
  $(function() { init_search(); });
});
/* @license-end */
</script>
<div id="main-nav"></div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function(){ initResizable(false); });
/* @license-end */
</script>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<div id="MSearchResults">
<div class="SRPage">
<div id="SRIndex">
<div id="SRResults"></div>
<div class="SRStatus" id="Loading">载入中...</div>
<div class="SRStatus" id="Searching">搜索中...</div>
<div class="SRStatus" id="NoMatches">未找到</div>
</div>
</div>
</div>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="../../dir_d44c64559bbebec7f509842c48db8b23.html">include</a></li><li class="navelem"><a class="el" href="../../dir_ae5bdaf1b45f3c0e6fd5dd3984d2eafd.html">details</a></li>  </ul>
</div>
</div><!-- top -->
<div id="doc-content">
<div class="header">
  <div class="headertitle"><div class="title">iserial.hpp</div></div>
</div><!--header-->
<div class="contents">
<a href="../../d3/d9d/iserial_8hpp.html">浏览该文件的文档.</a><div class="fragment"><div class="line"><a id="l00001" name="l00001"></a><span class="lineno">    1</span> </div>
<div class="line"><a id="l00008" name="l00008"></a><span class="lineno">    8</span><span class="preprocessor">#pragma once</span></div>
<div class="line"><a id="l00009" name="l00009"></a><span class="lineno">    9</span> </div>
<div class="line"><a id="l00010" name="l00010"></a><span class="lineno">   10</span><span class="preprocessor">#include &lt;functional&gt;</span></div>
<div class="line"><a id="l00011" name="l00011"></a><span class="lineno">   11</span><span class="preprocessor">#include &lt;string&gt;</span></div>
<div class="line"><a id="l00012" name="l00012"></a><span class="lineno">   12</span><span class="preprocessor">#include &lt;atomic&gt;</span></div>
<div class="line"><a id="l00013" name="l00013"></a><span class="lineno">   13</span> </div>
<div class="line"><a id="l00014" name="l00014"></a><span class="lineno">   14</span><span class="keyword">namespace </span><a class="code hl_namespace" href="../../df/d8d/namespacewheels.html">wheels</a>{</div>
<div class="foldopen" id="foldopen00015" data-start="{" data-end="};">
<div class="line"><a id="l00015" name="l00015"></a><span class="lineno"><a class="line" href="../../d2/da4/classwheels_1_1i_serial.html">   15</a></span><span class="keyword">class </span><a class="code hl_class" href="../../d2/da4/classwheels_1_1i_serial.html">iSerial</a></div>
<div class="line"><a id="l00016" name="l00016"></a><span class="lineno">   16</span>{</div>
<div class="line"><a id="l00017" name="l00017"></a><span class="lineno">   17</span><span class="keyword">public</span>:</div>
<div class="line"><a id="l00018" name="l00018"></a><span class="lineno">   18</span><span class="preprocessor">#if defined( WIN32 ) || defined( WINNT )</span></div>
<div class="line"><a id="l00019" name="l00019"></a><span class="lineno">   19</span>    <span class="keyword">using </span>native_handle_t = HANDLE;</div>
<div class="line"><a id="l00020" name="l00020"></a><span class="lineno">   20</span><span class="preprocessor">#elif defined( __LINUX__ )</span></div>
<div class="line"><a id="l00021" name="l00021"></a><span class="lineno">   21</span>    <span class="keyword">using </span>native_handle_t = int;</div>
<div class="line"><a id="l00022" name="l00022"></a><span class="lineno">   22</span><span class="preprocessor">#endif</span></div>
<div class="line"><a id="l00023" name="l00023"></a><span class="lineno"><a class="line" href="../../d2/da4/classwheels_1_1i_serial.html#a5e585bb076d6a01c8c9cdab92e20c5ac">   23</a></span>    <span class="keyword">enum class</span> <a class="code hl_enumeration" href="../../d2/da4/classwheels_1_1i_serial.html#a5e585bb076d6a01c8c9cdab92e20c5ac">stop</a>{ <a class="code hl_enumvalue" href="../../d2/da4/classwheels_1_1i_serial.html#a5e585bb076d6a01c8c9cdab92e20c5acab50339a10e1de285ac99d4c3990b8693">NONE</a> = 0, <a class="code hl_enumvalue" href="../../d2/da4/classwheels_1_1i_serial.html#a5e585bb076d6a01c8c9cdab92e20c5acabc21e6484530fc9d0313cb816b733396">ONE</a> , <a class="code hl_enumvalue" href="../../d2/da4/classwheels_1_1i_serial.html#a5e585bb076d6a01c8c9cdab92e20c5aca75872ef0066c09a9f7741c8d0c0b8b34">ONE_P_FIVE</a> , <a class="code hl_enumvalue" href="../../d2/da4/classwheels_1_1i_serial.html#a5e585bb076d6a01c8c9cdab92e20c5aca0f82d86afa0f5dc965c5c15aca58dcfb">TWO</a> };</div>
<div class="line"><a id="l00024" name="l00024"></a><span class="lineno"><a class="line" href="../../d2/da4/classwheels_1_1i_serial.html#ab1661c3535b0ca7149121b8b00dddca0">   24</a></span>    <span class="keyword">enum class</span> <a class="code hl_enumeration" href="../../d2/da4/classwheels_1_1i_serial.html#ab1661c3535b0ca7149121b8b00dddca0">parity</a>{ <a class="code hl_enumvalue" href="../../d2/da4/classwheels_1_1i_serial.html#a5e585bb076d6a01c8c9cdab92e20c5acab50339a10e1de285ac99d4c3990b8693">NONE</a> = 0 , <a class="code hl_enumvalue" href="../../d2/da4/classwheels_1_1i_serial.html#ab1661c3535b0ca7149121b8b00dddca0a6634c67f28ba9a80efe941b9519aa106">EVEN</a> = 1, <a class="code hl_enumvalue" href="../../d2/da4/classwheels_1_1i_serial.html#ab1661c3535b0ca7149121b8b00dddca0a57a1355d5527355458c7cc08ba70bf94">ODD</a> = 2};</div>
<div class="line"><a id="l00025" name="l00025"></a><span class="lineno"><a class="line" href="../../d2/da4/classwheels_1_1i_serial.html#a86e499ffc36867fed86449541837b295">   25</a></span>    <span class="keyword">enum class</span> <a class="code hl_enumeration" href="../../d2/da4/classwheels_1_1i_serial.html#a86e499ffc36867fed86449541837b295">flow</a>{<a class="code hl_enumvalue" href="../../d2/da4/classwheels_1_1i_serial.html#a5e585bb076d6a01c8c9cdab92e20c5acab50339a10e1de285ac99d4c3990b8693">NONE</a> = 0, <a class="code hl_enumvalue" href="../../d2/da4/classwheels_1_1i_serial.html#a86e499ffc36867fed86449541837b295a7c144eae2e08db14c82e376603cc01f4">HARD</a> , <a class="code hl_enumvalue" href="../../d2/da4/classwheels_1_1i_serial.html#a86e499ffc36867fed86449541837b295a52e743143106c12bfd73aae547fc6e2e">SOFT</a>, <a class="code hl_enumvalue" href="../../d2/da4/classwheels_1_1i_serial.html#a86e499ffc36867fed86449541837b295a7db074166dc89fa0ffaf4d29fba1212c">KEEPBACK</a> };</div>
<div class="line"><a id="l00026" name="l00026"></a><span class="lineno">   26</span> </div>
<div class="foldopen" id="foldopen00027" data-start="{" data-end="};">
<div class="line"><a id="l00027" name="l00027"></a><span class="lineno"><a class="line" href="../../d2/da4/classwheels_1_1i_serial.html#ac0046f5f91af625697c0474ae5084383">   27</a></span>    <span class="keyword">enum</span> <a class="code hl_enumeration" href="../../d2/da4/classwheels_1_1i_serial.html#ac0046f5f91af625697c0474ae5084383">err_code</a>{</div>
<div class="line"><a id="l00028" name="l00028"></a><span class="lineno"><a class="line" href="../../d2/da4/classwheels_1_1i_serial.html#ac0046f5f91af625697c0474ae5084383a6551c9ad625eaf9a74ae075a5f8b9536">   28</a></span>        <a class="code hl_enumvalue" href="../../d2/da4/classwheels_1_1i_serial.html#ac0046f5f91af625697c0474ae5084383a6551c9ad625eaf9a74ae075a5f8b9536">ERR_BASE</a>  = -1000,</div>
<div class="line"><a id="l00029" name="l00029"></a><span class="lineno"><a class="line" href="../../d2/da4/classwheels_1_1i_serial.html#ac0046f5f91af625697c0474ae5084383a89c845b1e9e073009724c86a746257ba">   29</a></span>        <a class="code hl_enumvalue" href="../../d2/da4/classwheels_1_1i_serial.html#ac0046f5f91af625697c0474ae5084383a89c845b1e9e073009724c86a746257ba">ERR_ALLOC_MEM</a>,             <span class="comment">// 分配内存失败</span></div>
<div class="line"><a id="l00030" name="l00030"></a><span class="lineno"><a class="line" href="../../d2/da4/classwheels_1_1i_serial.html#ac0046f5f91af625697c0474ae5084383a7ed7d6d446b6c86f35c552d8592dc366">   30</a></span>        <a class="code hl_enumvalue" href="../../d2/da4/classwheels_1_1i_serial.html#ac0046f5f91af625697c0474ae5084383a7ed7d6d446b6c86f35c552d8592dc366">ERR_DEV_OCCUPIED</a> ,         <span class="comment">// 串口被占用</span></div>
<div class="line"><a id="l00031" name="l00031"></a><span class="lineno"><a class="line" href="../../d2/da4/classwheels_1_1i_serial.html#ac0046f5f91af625697c0474ae5084383a1edc81c7de7df53ea7b1613c1edb38b3">   31</a></span>        <a class="code hl_enumvalue" href="../../d2/da4/classwheels_1_1i_serial.html#ac0046f5f91af625697c0474ae5084383a1edc81c7de7df53ea7b1613c1edb38b3">ERR_DEV_NOT_EXIST</a>,         <span class="comment">// 串口不存在</span></div>
<div class="line"><a id="l00032" name="l00032"></a><span class="lineno"><a class="line" href="../../d2/da4/classwheels_1_1i_serial.html#ac0046f5f91af625697c0474ae5084383a5b719da2246330ac1f47883d0d9a5804">   32</a></span>        <a class="code hl_enumvalue" href="../../d2/da4/classwheels_1_1i_serial.html#ac0046f5f91af625697c0474ae5084383a5b719da2246330ac1f47883d0d9a5804">ERR_SEND_DATA_EMPTY</a>,       <span class="comment">// 发送数据空</span></div>
<div class="line"><a id="l00033" name="l00033"></a><span class="lineno"><a class="line" href="../../d2/da4/classwheels_1_1i_serial.html#ac0046f5f91af625697c0474ae5084383a3461eab809f4ff664d8595a5a6907ca5">   33</a></span>        <a class="code hl_enumvalue" href="../../d2/da4/classwheels_1_1i_serial.html#ac0046f5f91af625697c0474ae5084383a3461eab809f4ff664d8595a5a6907ca5">ERR_SET_PARAMS</a>,            <span class="comment">// 设置串口参数失败</span></div>
<div class="line"><a id="l00034" name="l00034"></a><span class="lineno"><a class="line" href="../../d2/da4/classwheels_1_1i_serial.html#ac0046f5f91af625697c0474ae5084383ae630c3d7fc79ba79a0ee07e992da58af">   34</a></span>        <a class="code hl_enumvalue" href="../../d2/da4/classwheels_1_1i_serial.html#ac0046f5f91af625697c0474ae5084383ae630c3d7fc79ba79a0ee07e992da58af">ERR_BAD_DEV</a>,               <span class="comment">// 串口号错误</span></div>
<div class="line"><a id="l00035" name="l00035"></a><span class="lineno"><a class="line" href="../../d2/da4/classwheels_1_1i_serial.html#ac0046f5f91af625697c0474ae5084383abc38228971e6cde947aa8fed6ae6ad3c">   35</a></span>        <a class="code hl_enumvalue" href="../../d2/da4/classwheels_1_1i_serial.html#ac0046f5f91af625697c0474ae5084383abc38228971e6cde947aa8fed6ae6ad3c">ERR_BAD_FD</a>,                <span class="comment">// 系统错误文件描述符</span></div>
<div class="line"><a id="l00036" name="l00036"></a><span class="lineno"><a class="line" href="../../d2/da4/classwheels_1_1i_serial.html#ac0046f5f91af625697c0474ae5084383a73d5b6774d0bf478479eebd498446063">   36</a></span>        <a class="code hl_enumvalue" href="../../d2/da4/classwheels_1_1i_serial.html#ac0046f5f91af625697c0474ae5084383a73d5b6774d0bf478479eebd498446063">ERR_OPEN_SERIAL</a>,           <span class="comment">// 打开串口错误</span></div>
<div class="line"><a id="l00037" name="l00037"></a><span class="lineno"><a class="line" href="../../d2/da4/classwheels_1_1i_serial.html#ac0046f5f91af625697c0474ae5084383af9792569271aaf414353459cbe823420">   37</a></span>        <a class="code hl_enumvalue" href="../../d2/da4/classwheels_1_1i_serial.html#ac0046f5f91af625697c0474ae5084383af9792569271aaf414353459cbe823420">ERR_CLOSE_UART</a>,            <span class="comment">// 关闭串口出错</span></div>
<div class="line"><a id="l00038" name="l00038"></a><span class="lineno"><a class="line" href="../../d2/da4/classwheels_1_1i_serial.html#ac0046f5f91af625697c0474ae5084383a3f84716229ae01aa63b9738ba850d89d">   38</a></span>        <a class="code hl_enumvalue" href="../../d2/da4/classwheels_1_1i_serial.html#ac0046f5f91af625697c0474ae5084383a3f84716229ae01aa63b9738ba850d89d">ERR_SEND_FAIL</a>,             <span class="comment">//</span></div>
<div class="line"><a id="l00039" name="l00039"></a><span class="lineno"><a class="line" href="../../d2/da4/classwheels_1_1i_serial.html#ac0046f5f91af625697c0474ae5084383a6ebdbb240bf52714bdc9681c02caf4ee">   39</a></span>        <a class="code hl_enumvalue" href="../../d2/da4/classwheels_1_1i_serial.html#ac0046f5f91af625697c0474ae5084383a6ebdbb240bf52714bdc9681c02caf4ee">ERR_READ_DATA</a>,             <span class="comment">// 读取数据操作错误</span></div>
<div class="line"><a id="l00040" name="l00040"></a><span class="lineno"><a class="line" href="../../d2/da4/classwheels_1_1i_serial.html#ac0046f5f91af625697c0474ae5084383acaa284f06babae6bf2ffd909a488ee6c">   40</a></span>        <a class="code hl_enumvalue" href="../../d2/da4/classwheels_1_1i_serial.html#ac0046f5f91af625697c0474ae5084383acaa284f06babae6bf2ffd909a488ee6c">ERR_ALREADY_OPENED</a>,</div>
<div class="line"><a id="l00041" name="l00041"></a><span class="lineno"><a class="line" href="../../d2/da4/classwheels_1_1i_serial.html#ac0046f5f91af625697c0474ae5084383a8b22b30b92d939b9fb6afbc86df700f1">   41</a></span>        <a class="code hl_enumvalue" href="../../d2/da4/classwheels_1_1i_serial.html#ac0046f5f91af625697c0474ae5084383a8b22b30b92d939b9fb6afbc86df700f1">SET_COM_FAIL</a>,              <span class="comment">// WIN特殊错误，配置接收事件错误</span></div>
<div class="line"><a id="l00042" name="l00042"></a><span class="lineno"><a class="line" href="../../d2/da4/classwheels_1_1i_serial.html#ac0046f5f91af625697c0474ae5084383a71bb25e207215655764ee833d235290b">   42</a></span>        <a class="code hl_enumvalue" href="../../d2/da4/classwheels_1_1i_serial.html#ac0046f5f91af625697c0474ae5084383a71bb25e207215655764ee833d235290b">ERR_DATA_NULL</a>,             <span class="comment">// 数据指针为空</span></div>
<div class="line"><a id="l00043" name="l00043"></a><span class="lineno"><a class="line" href="../../d2/da4/classwheels_1_1i_serial.html#ac0046f5f91af625697c0474ae5084383a429f092781c607ee7830322ab6622103">   43</a></span>        <a class="code hl_enumvalue" href="../../d2/da4/classwheels_1_1i_serial.html#ac0046f5f91af625697c0474ae5084383a429f092781c607ee7830322ab6622103">GET_COM_FAIL</a>,</div>
<div class="line"><a id="l00044" name="l00044"></a><span class="lineno"><a class="line" href="../../d2/da4/classwheels_1_1i_serial.html#ac0046f5f91af625697c0474ae5084383a3ce50c3c0054820b2d594df51710ecac">   44</a></span>        <a class="code hl_enumvalue" href="../../d2/da4/classwheels_1_1i_serial.html#ac0046f5f91af625697c0474ae5084383a3ce50c3c0054820b2d594df51710ecac">ERR_STOP_READ_THD</a>,</div>
<div class="line"><a id="l00045" name="l00045"></a><span class="lineno"><a class="line" href="../../d2/da4/classwheels_1_1i_serial.html#ac0046f5f91af625697c0474ae5084383a29cdf0170835f2c3c026fea1addf09fd">   45</a></span>        <a class="code hl_enumvalue" href="../../d2/da4/classwheels_1_1i_serial.html#ac0046f5f91af625697c0474ae5084383a29cdf0170835f2c3c026fea1addf09fd">ERR_OVT</a>, </div>
<div class="line"><a id="l00046" name="l00046"></a><span class="lineno"><a class="line" href="../../d2/da4/classwheels_1_1i_serial.html#ac0046f5f91af625697c0474ae5084383ad3e1514c8be3361f16cb220d06ffbf2e">   46</a></span>        <a class="code hl_enumvalue" href="../../d2/da4/classwheels_1_1i_serial.html#ac0046f5f91af625697c0474ae5084383ad3e1514c8be3361f16cb220d06ffbf2e">ERR_ASYNC_WAIT_FAIL</a>,</div>
<div class="line"><a id="l00047" name="l00047"></a><span class="lineno"><a class="line" href="../../d2/da4/classwheels_1_1i_serial.html#ac0046f5f91af625697c0474ae5084383aeccd7b350937d5cae8fe41908f29e33b">   47</a></span>        <a class="code hl_enumvalue" href="../../d2/da4/classwheels_1_1i_serial.html#ac0046f5f91af625697c0474ae5084383aeccd7b350937d5cae8fe41908f29e33b">ERR_ASYNC_GET_RST_FAIL</a>,</div>
<div class="line"><a id="l00048" name="l00048"></a><span class="lineno">   48</span>        <a class="code hl_enumvalue" href="../../d2/da4/classwheels_1_1i_serial.html#ac0046f5f91af625697c0474ae5084383ac916edd76e76d336d3d95ccfa839ca8a">OK</a> = 0</div>
<div class="line"><a id="l00049" name="l00049"></a><span class="lineno"><a class="line" href="../../d2/da4/classwheels_1_1i_serial.html#ac0046f5f91af625697c0474ae5084383ac916edd76e76d336d3d95ccfa839ca8a">   49</a></span>    };</div>
</div>
<div class="line"><a id="l00050" name="l00050"></a><span class="lineno">   50</span> </div>
<div class="line"><a id="l00051" name="l00051"></a><span class="lineno"><a class="line" href="../../d2/da4/classwheels_1_1i_serial.html#afc49daaccbcc21e386b3fac67a479fcc">   51</a></span>    <span class="keyword">using </span><a class="code hl_enumeration" href="../../d2/da4/classwheels_1_1i_serial.html#ac0046f5f91af625697c0474ae5084383">emErrCode</a> = <a class="code hl_enumeration" href="../../d2/da4/classwheels_1_1i_serial.html#ac0046f5f91af625697c0474ae5084383">err_code</a>;</div>
<div class="line"><a id="l00052" name="l00052"></a><span class="lineno">   52</span><span class="keyword">public</span>:</div>
<div class="line"><a id="l00062" name="l00062"></a><span class="lineno"><a class="line" href="../../d2/da4/classwheels_1_1i_serial.html#a5c97a1c2a4ad0302e04f633789742ae4">   62</a></span>    <span class="keyword">virtual</span> <a class="code hl_enumeration" href="../../d2/da4/classwheels_1_1i_serial.html#ac0046f5f91af625697c0474ae5084383">err_code</a> <a class="code hl_function" href="../../d2/da4/classwheels_1_1i_serial.html#a5c97a1c2a4ad0302e04f633789742ae4">open</a>( <span class="keywordtype">int</span> baud , <span class="keywordtype">int</span> char_len , <a class="code hl_enumeration" href="../../d2/da4/classwheels_1_1i_serial.html#a5e585bb076d6a01c8c9cdab92e20c5ac">stop</a> s , <a class="code hl_enumeration" href="../../d2/da4/classwheels_1_1i_serial.html#ab1661c3535b0ca7149121b8b00dddca0">parity</a> p , <a class="code hl_enumeration" href="../../d2/da4/classwheels_1_1i_serial.html#a86e499ffc36867fed86449541837b295">flow</a> f ) = 0;</div>
<div class="line"><a id="l00063" name="l00063"></a><span class="lineno"><a class="line" href="../../d2/da4/classwheels_1_1i_serial.html#ad87bdf24e0f27d6285410e4d133c9ab1">   63</a></span>    <span class="keyword">virtual</span> <a class="code hl_enumeration" href="../../d2/da4/classwheels_1_1i_serial.html#ac0046f5f91af625697c0474ae5084383">err_code</a> <a class="code hl_function" href="../../d2/da4/classwheels_1_1i_serial.html#ad87bdf24e0f27d6285410e4d133c9ab1">close</a>() = 0;</div>
<div class="line"><a id="l00070" name="l00070"></a><span class="lineno"><a class="line" href="../../d2/da4/classwheels_1_1i_serial.html#afcb400225050bb4d269ad4e24b9cfd3d">   70</a></span>    <span class="keyword">virtual</span> <a class="code hl_enumeration" href="../../d2/da4/classwheels_1_1i_serial.html#ac0046f5f91af625697c0474ae5084383">err_code</a> <a class="code hl_function" href="../../d2/da4/classwheels_1_1i_serial.html#afcb400225050bb4d269ad4e24b9cfd3d">send</a>( <span class="keywordtype">size_t</span> len , <span class="keyword">const</span> <span class="keywordtype">char</span>* data ) = 0;</div>
<div class="line"><a id="l00074" name="l00074"></a><span class="lineno"><a class="line" href="../../d2/da4/classwheels_1_1i_serial.html#a3b795a5175156cdb27960db3b6ead564">   74</a></span>    <span class="keyword">virtual</span> <a class="code hl_class" href="../../d2/da4/classwheels_1_1i_serial.html">iSerial</a>&amp; <a class="code hl_function" href="../../d2/da4/classwheels_1_1i_serial.html#a3b795a5175156cdb27960db3b6ead564">evtOpen</a>(  std::function&lt; <span class="keywordtype">void</span> (<a class="code hl_enumeration" href="../../d2/da4/classwheels_1_1i_serial.html#ac0046f5f91af625697c0474ae5084383">err_code</a>)&gt; fun ) = 0;</div>
<div class="line"><a id="l00075" name="l00075"></a><span class="lineno"><a class="line" href="../../d2/da4/classwheels_1_1i_serial.html#ab8aca3b048eddae137fe5a329ce0da91">   75</a></span>    <a class="code hl_class" href="../../d2/da4/classwheels_1_1i_serial.html">iSerial</a>&amp; <a class="code hl_function" href="../../d2/da4/classwheels_1_1i_serial.html#ab8aca3b048eddae137fe5a329ce0da91">evtClose</a>( std::function&lt; <span class="keywordtype">void</span> (<a class="code hl_enumeration" href="../../d2/da4/classwheels_1_1i_serial.html#ac0046f5f91af625697c0474ae5084383">err_code</a>)&gt; fun                        );</div>
<div class="line"><a id="l00076" name="l00076"></a><span class="lineno"><a class="line" href="../../d2/da4/classwheels_1_1i_serial.html#a7e98cc0bbb63d96c8033188ebefeb94e">   76</a></span>    <a class="code hl_class" href="../../d2/da4/classwheels_1_1i_serial.html">iSerial</a>&amp; <a class="code hl_function" href="../../d2/da4/classwheels_1_1i_serial.html#a7e98cc0bbb63d96c8033188ebefeb94e">evtSend</a>(  std::function&lt; <span class="keywordtype">void</span> (<span class="keywordtype">size_t</span> , <a class="code hl_enumeration" href="../../d2/da4/classwheels_1_1i_serial.html#ac0046f5f91af625697c0474ae5084383">err_code</a>)&gt; fun               );</div>
<div class="line"><a id="l00077" name="l00077"></a><span class="lineno"><a class="line" href="../../d2/da4/classwheels_1_1i_serial.html#a471a0264bf9600dc5b8305e9f409c812">   77</a></span>    <a class="code hl_class" href="../../d2/da4/classwheels_1_1i_serial.html">iSerial</a>&amp; <a class="code hl_function" href="../../d2/da4/classwheels_1_1i_serial.html#a471a0264bf9600dc5b8305e9f409c812">evtRecv</a>(  std::function&lt; <span class="keywordtype">void</span> (<span class="keywordtype">size_t</span> , <span class="keyword">const</span> <span class="keywordtype">char</span>* , <a class="code hl_enumeration" href="../../d2/da4/classwheels_1_1i_serial.html#ac0046f5f91af625697c0474ae5084383">err_code</a>)&gt; fun );</div>
<div class="line"><a id="l00078" name="l00078"></a><span class="lineno">   78</span> </div>
<div class="line"><a id="l00082" name="l00082"></a><span class="lineno"><a class="line" href="../../d2/da4/classwheels_1_1i_serial.html#a0841ac68972c81b88a01537d92b18984">   82</a></span>    <span class="keyword">virtual</span> <a class="code hl_enumeration" href="../../d2/da4/classwheels_1_1i_serial.html#ac0046f5f91af625697c0474ae5084383">err_code</a> <a class="code hl_function" href="../../d2/da4/classwheels_1_1i_serial.html#a0841ac68972c81b88a01537d92b18984">reset</a>() = 0;</div>
<div class="line"><a id="l00083" name="l00083"></a><span class="lineno"><a class="line" href="../../d2/da4/classwheels_1_1i_serial.html#af312457e1f3828f86f230cb599b872a5">   83</a></span>    <span class="keyword">virtual</span> <a class="code hl_enumeration" href="../../d2/da4/classwheels_1_1i_serial.html#ac0046f5f91af625697c0474ae5084383">err_code</a> <a class="code hl_function" href="../../d2/da4/classwheels_1_1i_serial.html#af312457e1f3828f86f230cb599b872a5">reset</a>( <span class="keywordtype">int</span> baud , <span class="keywordtype">int</span> char_len , <a class="code hl_enumeration" href="../../d2/da4/classwheels_1_1i_serial.html#a5e585bb076d6a01c8c9cdab92e20c5ac">stop</a> s , <a class="code hl_enumeration" href="../../d2/da4/classwheels_1_1i_serial.html#ab1661c3535b0ca7149121b8b00dddca0">parity</a> p , <a class="code hl_enumeration" href="../../d2/da4/classwheels_1_1i_serial.html#a86e499ffc36867fed86449541837b295">flow</a> f ) = 0;</div>
<div class="line"><a id="l00088" name="l00088"></a><span class="lineno"><a class="line" href="../../d2/da4/classwheels_1_1i_serial.html#a7e4804af8e9971965685ccbb4500f9fc">   88</a></span>    <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <a class="code hl_function" href="../../d2/da4/classwheels_1_1i_serial.html#a7e4804af8e9971965685ccbb4500f9fc">is_open</a>() = 0;</div>
<div class="line"><a id="l00093" name="l00093"></a><span class="lineno"><a class="line" href="../../d2/da4/classwheels_1_1i_serial.html#ab17d3719e9133baba1a3ed852210e143">   93</a></span>    <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code hl_function" href="../../d2/da4/classwheels_1_1i_serial.html#ab17d3719e9133baba1a3ed852210e143">run</a>( <span class="keywordtype">bool</span> <a class="code hl_function" href="../../d2/da4/classwheels_1_1i_serial.html#ab17d3719e9133baba1a3ed852210e143">run</a> ) = 0;</div>
<div class="line"><a id="l00097" name="l00097"></a><span class="lineno"><a class="line" href="../../d2/da4/classwheels_1_1i_serial.html#a568297e82df18819a5b263132437d970">   97</a></span>    <span class="keyword">virtual</span> native_handle_t <a class="code hl_function" href="../../d2/da4/classwheels_1_1i_serial.html#a568297e82df18819a5b263132437d970">native_handle</a>() = 0;</div>
<div class="line"><a id="l00101" name="l00101"></a><span class="lineno"><a class="line" href="../../d2/da4/classwheels_1_1i_serial.html#a15753b84ca120807c482260c1ff935b2">  101</a></span>    <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code hl_function" href="../../d2/da4/classwheels_1_1i_serial.html#a15753b84ca120807c482260c1ff935b2">standby</a>() = 0;</div>
<div class="line"><a id="l00102" name="l00102"></a><span class="lineno">  102</span> </div>
<div class="line"><a id="l00103" name="l00103"></a><span class="lineno">  103</span>    <span class="keyword">static</span> std::string <a class="code hl_function" href="../../d2/da4/classwheels_1_1i_serial.html#aa4da33b7874fb53fbb8197f6d2c85c9d">errMsg</a>( <a class="code hl_enumeration" href="../../d2/da4/classwheels_1_1i_serial.html#ac0046f5f91af625697c0474ae5084383">emErrCode</a>&amp; e );</div>
<div class="line"><a id="l00104" name="l00104"></a><span class="lineno">  104</span>};</div>
</div>
<div class="line"><a id="l00105" name="l00105"></a><span class="lineno">  105</span>}</div>
<div class="ttc" id="aclasswheels_1_1i_serial_html"><div class="ttname"><a href="../../d2/da4/classwheels_1_1i_serial.html">wheels::iSerial</a></div><div class="ttdef"><b>定义</b> <a href="#l00015">iserial.hpp:16</a></div></div>
<div class="ttc" id="aclasswheels_1_1i_serial_html_a0841ac68972c81b88a01537d92b18984"><div class="ttname"><a href="../../d2/da4/classwheels_1_1i_serial.html#a0841ac68972c81b88a01537d92b18984">wheels::iSerial::reset</a></div><div class="ttdeci">virtual err_code reset()=0</div><div class="ttdoc">复位串口。关闭串口重新打开</div></div>
<div class="ttc" id="aclasswheels_1_1i_serial_html_a15753b84ca120807c482260c1ff935b2"><div class="ttname"><a href="../../d2/da4/classwheels_1_1i_serial.html#a15753b84ca120807c482260c1ff935b2">wheels::iSerial::standby</a></div><div class="ttdeci">virtual void standby()=0</div><div class="ttdoc">结束串口消息循环</div></div>
<div class="ttc" id="aclasswheels_1_1i_serial_html_a3b795a5175156cdb27960db3b6ead564"><div class="ttname"><a href="../../d2/da4/classwheels_1_1i_serial.html#a3b795a5175156cdb27960db3b6ead564">wheels::iSerial::evtOpen</a></div><div class="ttdeci">virtual iSerial &amp; evtOpen(std::function&lt; void(err_code)&gt; fun)=0</div><div class="ttdoc">操作事件设置操作事件</div></div>
<div class="ttc" id="aclasswheels_1_1i_serial_html_a471a0264bf9600dc5b8305e9f409c812"><div class="ttname"><a href="../../d2/da4/classwheels_1_1i_serial.html#a471a0264bf9600dc5b8305e9f409c812">wheels::iSerial::evtRecv</a></div><div class="ttdeci">iSerial &amp; evtRecv(std::function&lt; void(size_t, const char *, err_code)&gt; fun)</div></div>
<div class="ttc" id="aclasswheels_1_1i_serial_html_a568297e82df18819a5b263132437d970"><div class="ttname"><a href="../../d2/da4/classwheels_1_1i_serial.html#a568297e82df18819a5b263132437d970">wheels::iSerial::native_handle</a></div><div class="ttdeci">virtual native_handle_t native_handle()=0</div><div class="ttdoc">读取系统</div></div>
<div class="ttc" id="aclasswheels_1_1i_serial_html_a5c97a1c2a4ad0302e04f633789742ae4"><div class="ttname"><a href="../../d2/da4/classwheels_1_1i_serial.html#a5c97a1c2a4ad0302e04f633789742ae4">wheels::iSerial::open</a></div><div class="ttdeci">virtual err_code open(int baud, int char_len, stop s, parity p, flow f)=0</div><div class="ttdoc">打开串口。</div></div>
<div class="ttc" id="aclasswheels_1_1i_serial_html_a5e585bb076d6a01c8c9cdab92e20c5ac"><div class="ttname"><a href="../../d2/da4/classwheels_1_1i_serial.html#a5e585bb076d6a01c8c9cdab92e20c5ac">wheels::iSerial::stop</a></div><div class="ttdeci">stop</div><div class="ttdef"><b>定义</b> <a href="#l00023">iserial.hpp:23</a></div></div>
<div class="ttc" id="aclasswheels_1_1i_serial_html_a5e585bb076d6a01c8c9cdab92e20c5aca0f82d86afa0f5dc965c5c15aca58dcfb"><div class="ttname"><a href="../../d2/da4/classwheels_1_1i_serial.html#a5e585bb076d6a01c8c9cdab92e20c5aca0f82d86afa0f5dc965c5c15aca58dcfb">wheels::iSerial::stop::TWO</a></div><div class="ttdeci">@ TWO</div></div>
<div class="ttc" id="aclasswheels_1_1i_serial_html_a5e585bb076d6a01c8c9cdab92e20c5aca75872ef0066c09a9f7741c8d0c0b8b34"><div class="ttname"><a href="../../d2/da4/classwheels_1_1i_serial.html#a5e585bb076d6a01c8c9cdab92e20c5aca75872ef0066c09a9f7741c8d0c0b8b34">wheels::iSerial::stop::ONE_P_FIVE</a></div><div class="ttdeci">@ ONE_P_FIVE</div></div>
<div class="ttc" id="aclasswheels_1_1i_serial_html_a5e585bb076d6a01c8c9cdab92e20c5acab50339a10e1de285ac99d4c3990b8693"><div class="ttname"><a href="../../d2/da4/classwheels_1_1i_serial.html#a5e585bb076d6a01c8c9cdab92e20c5acab50339a10e1de285ac99d4c3990b8693">wheels::iSerial::stop::NONE</a></div><div class="ttdeci">@ NONE</div></div>
<div class="ttc" id="aclasswheels_1_1i_serial_html_a5e585bb076d6a01c8c9cdab92e20c5acabc21e6484530fc9d0313cb816b733396"><div class="ttname"><a href="../../d2/da4/classwheels_1_1i_serial.html#a5e585bb076d6a01c8c9cdab92e20c5acabc21e6484530fc9d0313cb816b733396">wheels::iSerial::stop::ONE</a></div><div class="ttdeci">@ ONE</div></div>
<div class="ttc" id="aclasswheels_1_1i_serial_html_a7e4804af8e9971965685ccbb4500f9fc"><div class="ttname"><a href="../../d2/da4/classwheels_1_1i_serial.html#a7e4804af8e9971965685ccbb4500f9fc">wheels::iSerial::is_open</a></div><div class="ttdeci">virtual bool is_open()=0</div><div class="ttdoc">串口是否打开</div></div>
<div class="ttc" id="aclasswheels_1_1i_serial_html_a7e98cc0bbb63d96c8033188ebefeb94e"><div class="ttname"><a href="../../d2/da4/classwheels_1_1i_serial.html#a7e98cc0bbb63d96c8033188ebefeb94e">wheels::iSerial::evtSend</a></div><div class="ttdeci">iSerial &amp; evtSend(std::function&lt; void(size_t, err_code)&gt; fun)</div></div>
<div class="ttc" id="aclasswheels_1_1i_serial_html_a86e499ffc36867fed86449541837b295"><div class="ttname"><a href="../../d2/da4/classwheels_1_1i_serial.html#a86e499ffc36867fed86449541837b295">wheels::iSerial::flow</a></div><div class="ttdeci">flow</div><div class="ttdef"><b>定义</b> <a href="#l00025">iserial.hpp:25</a></div></div>
<div class="ttc" id="aclasswheels_1_1i_serial_html_a86e499ffc36867fed86449541837b295a52e743143106c12bfd73aae547fc6e2e"><div class="ttname"><a href="../../d2/da4/classwheels_1_1i_serial.html#a86e499ffc36867fed86449541837b295a52e743143106c12bfd73aae547fc6e2e">wheels::iSerial::flow::SOFT</a></div><div class="ttdeci">@ SOFT</div></div>
<div class="ttc" id="aclasswheels_1_1i_serial_html_a86e499ffc36867fed86449541837b295a7c144eae2e08db14c82e376603cc01f4"><div class="ttname"><a href="../../d2/da4/classwheels_1_1i_serial.html#a86e499ffc36867fed86449541837b295a7c144eae2e08db14c82e376603cc01f4">wheels::iSerial::flow::HARD</a></div><div class="ttdeci">@ HARD</div></div>
<div class="ttc" id="aclasswheels_1_1i_serial_html_a86e499ffc36867fed86449541837b295a7db074166dc89fa0ffaf4d29fba1212c"><div class="ttname"><a href="../../d2/da4/classwheels_1_1i_serial.html#a86e499ffc36867fed86449541837b295a7db074166dc89fa0ffaf4d29fba1212c">wheels::iSerial::flow::KEEPBACK</a></div><div class="ttdeci">@ KEEPBACK</div></div>
<div class="ttc" id="aclasswheels_1_1i_serial_html_aa4da33b7874fb53fbb8197f6d2c85c9d"><div class="ttname"><a href="../../d2/da4/classwheels_1_1i_serial.html#aa4da33b7874fb53fbb8197f6d2c85c9d">wheels::iSerial::errMsg</a></div><div class="ttdeci">static std::string errMsg(emErrCode &amp;e)</div><div class="ttdef"><b>定义</b> <a href="../../d2/d94/i_serial_8cpp_source.html#l00004">iSerial.cpp:4</a></div></div>
<div class="ttc" id="aclasswheels_1_1i_serial_html_ab1661c3535b0ca7149121b8b00dddca0"><div class="ttname"><a href="../../d2/da4/classwheels_1_1i_serial.html#ab1661c3535b0ca7149121b8b00dddca0">wheels::iSerial::parity</a></div><div class="ttdeci">parity</div><div class="ttdef"><b>定义</b> <a href="#l00024">iserial.hpp:24</a></div></div>
<div class="ttc" id="aclasswheels_1_1i_serial_html_ab1661c3535b0ca7149121b8b00dddca0a57a1355d5527355458c7cc08ba70bf94"><div class="ttname"><a href="../../d2/da4/classwheels_1_1i_serial.html#ab1661c3535b0ca7149121b8b00dddca0a57a1355d5527355458c7cc08ba70bf94">wheels::iSerial::parity::ODD</a></div><div class="ttdeci">@ ODD</div></div>
<div class="ttc" id="aclasswheels_1_1i_serial_html_ab1661c3535b0ca7149121b8b00dddca0a6634c67f28ba9a80efe941b9519aa106"><div class="ttname"><a href="../../d2/da4/classwheels_1_1i_serial.html#ab1661c3535b0ca7149121b8b00dddca0a6634c67f28ba9a80efe941b9519aa106">wheels::iSerial::parity::EVEN</a></div><div class="ttdeci">@ EVEN</div></div>
<div class="ttc" id="aclasswheels_1_1i_serial_html_ab17d3719e9133baba1a3ed852210e143"><div class="ttname"><a href="../../d2/da4/classwheels_1_1i_serial.html#ab17d3719e9133baba1a3ed852210e143">wheels::iSerial::run</a></div><div class="ttdeci">virtual void run(bool run)=0</div><div class="ttdoc">启动串口循环</div></div>
<div class="ttc" id="aclasswheels_1_1i_serial_html_ab8aca3b048eddae137fe5a329ce0da91"><div class="ttname"><a href="../../d2/da4/classwheels_1_1i_serial.html#ab8aca3b048eddae137fe5a329ce0da91">wheels::iSerial::evtClose</a></div><div class="ttdeci">iSerial &amp; evtClose(std::function&lt; void(err_code)&gt; fun)</div></div>
<div class="ttc" id="aclasswheels_1_1i_serial_html_ac0046f5f91af625697c0474ae5084383"><div class="ttname"><a href="../../d2/da4/classwheels_1_1i_serial.html#ac0046f5f91af625697c0474ae5084383">wheels::iSerial::err_code</a></div><div class="ttdeci">err_code</div><div class="ttdef"><b>定义</b> <a href="#l00027">iserial.hpp:27</a></div></div>
<div class="ttc" id="aclasswheels_1_1i_serial_html_ac0046f5f91af625697c0474ae5084383a1edc81c7de7df53ea7b1613c1edb38b3"><div class="ttname"><a href="../../d2/da4/classwheels_1_1i_serial.html#ac0046f5f91af625697c0474ae5084383a1edc81c7de7df53ea7b1613c1edb38b3">wheels::iSerial::ERR_DEV_NOT_EXIST</a></div><div class="ttdeci">@ ERR_DEV_NOT_EXIST</div><div class="ttdef"><b>定义</b> <a href="#l00031">iserial.hpp:31</a></div></div>
<div class="ttc" id="aclasswheels_1_1i_serial_html_ac0046f5f91af625697c0474ae5084383a29cdf0170835f2c3c026fea1addf09fd"><div class="ttname"><a href="../../d2/da4/classwheels_1_1i_serial.html#ac0046f5f91af625697c0474ae5084383a29cdf0170835f2c3c026fea1addf09fd">wheels::iSerial::ERR_OVT</a></div><div class="ttdeci">@ ERR_OVT</div><div class="ttdef"><b>定义</b> <a href="#l00045">iserial.hpp:45</a></div></div>
<div class="ttc" id="aclasswheels_1_1i_serial_html_ac0046f5f91af625697c0474ae5084383a3461eab809f4ff664d8595a5a6907ca5"><div class="ttname"><a href="../../d2/da4/classwheels_1_1i_serial.html#ac0046f5f91af625697c0474ae5084383a3461eab809f4ff664d8595a5a6907ca5">wheels::iSerial::ERR_SET_PARAMS</a></div><div class="ttdeci">@ ERR_SET_PARAMS</div><div class="ttdef"><b>定义</b> <a href="#l00033">iserial.hpp:33</a></div></div>
<div class="ttc" id="aclasswheels_1_1i_serial_html_ac0046f5f91af625697c0474ae5084383a3ce50c3c0054820b2d594df51710ecac"><div class="ttname"><a href="../../d2/da4/classwheels_1_1i_serial.html#ac0046f5f91af625697c0474ae5084383a3ce50c3c0054820b2d594df51710ecac">wheels::iSerial::ERR_STOP_READ_THD</a></div><div class="ttdeci">@ ERR_STOP_READ_THD</div><div class="ttdef"><b>定义</b> <a href="#l00044">iserial.hpp:44</a></div></div>
<div class="ttc" id="aclasswheels_1_1i_serial_html_ac0046f5f91af625697c0474ae5084383a3f84716229ae01aa63b9738ba850d89d"><div class="ttname"><a href="../../d2/da4/classwheels_1_1i_serial.html#ac0046f5f91af625697c0474ae5084383a3f84716229ae01aa63b9738ba850d89d">wheels::iSerial::ERR_SEND_FAIL</a></div><div class="ttdeci">@ ERR_SEND_FAIL</div><div class="ttdef"><b>定义</b> <a href="#l00038">iserial.hpp:38</a></div></div>
<div class="ttc" id="aclasswheels_1_1i_serial_html_ac0046f5f91af625697c0474ae5084383a429f092781c607ee7830322ab6622103"><div class="ttname"><a href="../../d2/da4/classwheels_1_1i_serial.html#ac0046f5f91af625697c0474ae5084383a429f092781c607ee7830322ab6622103">wheels::iSerial::GET_COM_FAIL</a></div><div class="ttdeci">@ GET_COM_FAIL</div><div class="ttdef"><b>定义</b> <a href="#l00043">iserial.hpp:43</a></div></div>
<div class="ttc" id="aclasswheels_1_1i_serial_html_ac0046f5f91af625697c0474ae5084383a5b719da2246330ac1f47883d0d9a5804"><div class="ttname"><a href="../../d2/da4/classwheels_1_1i_serial.html#ac0046f5f91af625697c0474ae5084383a5b719da2246330ac1f47883d0d9a5804">wheels::iSerial::ERR_SEND_DATA_EMPTY</a></div><div class="ttdeci">@ ERR_SEND_DATA_EMPTY</div><div class="ttdef"><b>定义</b> <a href="#l00032">iserial.hpp:32</a></div></div>
<div class="ttc" id="aclasswheels_1_1i_serial_html_ac0046f5f91af625697c0474ae5084383a6551c9ad625eaf9a74ae075a5f8b9536"><div class="ttname"><a href="../../d2/da4/classwheels_1_1i_serial.html#ac0046f5f91af625697c0474ae5084383a6551c9ad625eaf9a74ae075a5f8b9536">wheels::iSerial::ERR_BASE</a></div><div class="ttdeci">@ ERR_BASE</div><div class="ttdef"><b>定义</b> <a href="#l00028">iserial.hpp:28</a></div></div>
<div class="ttc" id="aclasswheels_1_1i_serial_html_ac0046f5f91af625697c0474ae5084383a6ebdbb240bf52714bdc9681c02caf4ee"><div class="ttname"><a href="../../d2/da4/classwheels_1_1i_serial.html#ac0046f5f91af625697c0474ae5084383a6ebdbb240bf52714bdc9681c02caf4ee">wheels::iSerial::ERR_READ_DATA</a></div><div class="ttdeci">@ ERR_READ_DATA</div><div class="ttdef"><b>定义</b> <a href="#l00039">iserial.hpp:39</a></div></div>
<div class="ttc" id="aclasswheels_1_1i_serial_html_ac0046f5f91af625697c0474ae5084383a71bb25e207215655764ee833d235290b"><div class="ttname"><a href="../../d2/da4/classwheels_1_1i_serial.html#ac0046f5f91af625697c0474ae5084383a71bb25e207215655764ee833d235290b">wheels::iSerial::ERR_DATA_NULL</a></div><div class="ttdeci">@ ERR_DATA_NULL</div><div class="ttdef"><b>定义</b> <a href="#l00042">iserial.hpp:42</a></div></div>
<div class="ttc" id="aclasswheels_1_1i_serial_html_ac0046f5f91af625697c0474ae5084383a73d5b6774d0bf478479eebd498446063"><div class="ttname"><a href="../../d2/da4/classwheels_1_1i_serial.html#ac0046f5f91af625697c0474ae5084383a73d5b6774d0bf478479eebd498446063">wheels::iSerial::ERR_OPEN_SERIAL</a></div><div class="ttdeci">@ ERR_OPEN_SERIAL</div><div class="ttdef"><b>定义</b> <a href="#l00036">iserial.hpp:36</a></div></div>
<div class="ttc" id="aclasswheels_1_1i_serial_html_ac0046f5f91af625697c0474ae5084383a7ed7d6d446b6c86f35c552d8592dc366"><div class="ttname"><a href="../../d2/da4/classwheels_1_1i_serial.html#ac0046f5f91af625697c0474ae5084383a7ed7d6d446b6c86f35c552d8592dc366">wheels::iSerial::ERR_DEV_OCCUPIED</a></div><div class="ttdeci">@ ERR_DEV_OCCUPIED</div><div class="ttdef"><b>定义</b> <a href="#l00030">iserial.hpp:30</a></div></div>
<div class="ttc" id="aclasswheels_1_1i_serial_html_ac0046f5f91af625697c0474ae5084383a89c845b1e9e073009724c86a746257ba"><div class="ttname"><a href="../../d2/da4/classwheels_1_1i_serial.html#ac0046f5f91af625697c0474ae5084383a89c845b1e9e073009724c86a746257ba">wheels::iSerial::ERR_ALLOC_MEM</a></div><div class="ttdeci">@ ERR_ALLOC_MEM</div><div class="ttdef"><b>定义</b> <a href="#l00029">iserial.hpp:29</a></div></div>
<div class="ttc" id="aclasswheels_1_1i_serial_html_ac0046f5f91af625697c0474ae5084383a8b22b30b92d939b9fb6afbc86df700f1"><div class="ttname"><a href="../../d2/da4/classwheels_1_1i_serial.html#ac0046f5f91af625697c0474ae5084383a8b22b30b92d939b9fb6afbc86df700f1">wheels::iSerial::SET_COM_FAIL</a></div><div class="ttdeci">@ SET_COM_FAIL</div><div class="ttdef"><b>定义</b> <a href="#l00041">iserial.hpp:41</a></div></div>
<div class="ttc" id="aclasswheels_1_1i_serial_html_ac0046f5f91af625697c0474ae5084383abc38228971e6cde947aa8fed6ae6ad3c"><div class="ttname"><a href="../../d2/da4/classwheels_1_1i_serial.html#ac0046f5f91af625697c0474ae5084383abc38228971e6cde947aa8fed6ae6ad3c">wheels::iSerial::ERR_BAD_FD</a></div><div class="ttdeci">@ ERR_BAD_FD</div><div class="ttdef"><b>定义</b> <a href="#l00035">iserial.hpp:35</a></div></div>
<div class="ttc" id="aclasswheels_1_1i_serial_html_ac0046f5f91af625697c0474ae5084383ac916edd76e76d336d3d95ccfa839ca8a"><div class="ttname"><a href="../../d2/da4/classwheels_1_1i_serial.html#ac0046f5f91af625697c0474ae5084383ac916edd76e76d336d3d95ccfa839ca8a">wheels::iSerial::OK</a></div><div class="ttdeci">@ OK</div><div class="ttdef"><b>定义</b> <a href="#l00049">iserial.hpp:48</a></div></div>
<div class="ttc" id="aclasswheels_1_1i_serial_html_ac0046f5f91af625697c0474ae5084383acaa284f06babae6bf2ffd909a488ee6c"><div class="ttname"><a href="../../d2/da4/classwheels_1_1i_serial.html#ac0046f5f91af625697c0474ae5084383acaa284f06babae6bf2ffd909a488ee6c">wheels::iSerial::ERR_ALREADY_OPENED</a></div><div class="ttdeci">@ ERR_ALREADY_OPENED</div><div class="ttdef"><b>定义</b> <a href="#l00040">iserial.hpp:40</a></div></div>
<div class="ttc" id="aclasswheels_1_1i_serial_html_ac0046f5f91af625697c0474ae5084383ad3e1514c8be3361f16cb220d06ffbf2e"><div class="ttname"><a href="../../d2/da4/classwheels_1_1i_serial.html#ac0046f5f91af625697c0474ae5084383ad3e1514c8be3361f16cb220d06ffbf2e">wheels::iSerial::ERR_ASYNC_WAIT_FAIL</a></div><div class="ttdeci">@ ERR_ASYNC_WAIT_FAIL</div><div class="ttdef"><b>定义</b> <a href="#l00046">iserial.hpp:46</a></div></div>
<div class="ttc" id="aclasswheels_1_1i_serial_html_ac0046f5f91af625697c0474ae5084383ae630c3d7fc79ba79a0ee07e992da58af"><div class="ttname"><a href="../../d2/da4/classwheels_1_1i_serial.html#ac0046f5f91af625697c0474ae5084383ae630c3d7fc79ba79a0ee07e992da58af">wheels::iSerial::ERR_BAD_DEV</a></div><div class="ttdeci">@ ERR_BAD_DEV</div><div class="ttdef"><b>定义</b> <a href="#l00034">iserial.hpp:34</a></div></div>
<div class="ttc" id="aclasswheels_1_1i_serial_html_ac0046f5f91af625697c0474ae5084383aeccd7b350937d5cae8fe41908f29e33b"><div class="ttname"><a href="../../d2/da4/classwheels_1_1i_serial.html#ac0046f5f91af625697c0474ae5084383aeccd7b350937d5cae8fe41908f29e33b">wheels::iSerial::ERR_ASYNC_GET_RST_FAIL</a></div><div class="ttdeci">@ ERR_ASYNC_GET_RST_FAIL</div><div class="ttdef"><b>定义</b> <a href="#l00047">iserial.hpp:47</a></div></div>
<div class="ttc" id="aclasswheels_1_1i_serial_html_ac0046f5f91af625697c0474ae5084383af9792569271aaf414353459cbe823420"><div class="ttname"><a href="../../d2/da4/classwheels_1_1i_serial.html#ac0046f5f91af625697c0474ae5084383af9792569271aaf414353459cbe823420">wheels::iSerial::ERR_CLOSE_UART</a></div><div class="ttdeci">@ ERR_CLOSE_UART</div><div class="ttdef"><b>定义</b> <a href="#l00037">iserial.hpp:37</a></div></div>
<div class="ttc" id="aclasswheels_1_1i_serial_html_ad87bdf24e0f27d6285410e4d133c9ab1"><div class="ttname"><a href="../../d2/da4/classwheels_1_1i_serial.html#ad87bdf24e0f27d6285410e4d133c9ab1">wheels::iSerial::close</a></div><div class="ttdeci">virtual err_code close()=0</div></div>
<div class="ttc" id="aclasswheels_1_1i_serial_html_af312457e1f3828f86f230cb599b872a5"><div class="ttname"><a href="../../d2/da4/classwheels_1_1i_serial.html#af312457e1f3828f86f230cb599b872a5">wheels::iSerial::reset</a></div><div class="ttdeci">virtual err_code reset(int baud, int char_len, stop s, parity p, flow f)=0</div></div>
<div class="ttc" id="aclasswheels_1_1i_serial_html_afcb400225050bb4d269ad4e24b9cfd3d"><div class="ttname"><a href="../../d2/da4/classwheels_1_1i_serial.html#afcb400225050bb4d269ad4e24b9cfd3d">wheels::iSerial::send</a></div><div class="ttdeci">virtual err_code send(size_t len, const char *data)=0</div><div class="ttdoc">发送数据。这个函数调用后立即返回，操作结果从回调中获取，因此这个函数执行返回后 并不一位置发送完成</div></div>
<div class="ttc" id="anamespacewheels_html"><div class="ttname"><a href="../../df/d8d/namespacewheels.html">wheels</a></div><div class="ttdoc">堆栈信息读取和保存记录</div><div class="ttdef"><b>定义</b> <a href="../../d3/df7/ary__str_8hpp_source.html#l00006">ary_str.hpp:7</a></div></div>
</div><!-- fragment --></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
制作者&#160;<a href="https://www.doxygen.org/index.html"><img class="footer" src="../../doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.11.0
</small></address>
</div><!-- doc-content -->
</body>
</html>
